package com.ncst.backend.mapper;

import com.ncst.backend.domain.Register;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 挂号Mapper接口
 */
@Mapper
public interface RegisterMapper {

    Register selectById(@Param("id") Integer id);
    List<Register> selectAll();
    List<Register> selectByCondition(Register register);
    List<Register> selectByPage(@Param("offset") Integer offset, @Param("limit") Integer limit);
    Long countAll();
    Long countByCondition(Register register);
    int insert(Register register);
    int insertBatch(@Param("list") List<Register> list);
    int updateById(Register register);
    int deleteById(@Param("id") Integer id);
    int deleteByIds(@Param("ids") List<Integer> ids);

    Integer ChargeSettle(Integer patientId);
}
